<!--#include("./header.html")-->
<!--%import("js/commentnotify.js")-->
<!--%import("filter/delete_child.xml")-->
<!--%import("filter/delete_parent.xml")-->
<!--%import("filter/delete_checked.xml")-->

<form id="fo_list" action="./" method="get" onsubmit="return procFilter(this, delete_checked)">
<input type="hidden" name="page" value="{$page}" />

<!-- 목록 -->
<table cellspacing="0" class="rowTable">
<caption>Total {number_format($total_count)}, Page {number_format($page)}/{number_format($total_page)}</caption>
<thead>
    <tr>
        <th scope="col"><div><input type="checkbox" onclick="XE.checkboxToggleAll(); return false;" /></div></th>
        <th scope="col"><div>{$lang->regdate}</div></th>
        <th scope="col"><div>{$lang->site_name}</div></th>
        <th scope="col"><div>{$lang->nick_name}</div></th>
        <th scope="col" class="wide"><div>{$lang->content}</div></th>
        <th scope="col"><div>{$lang->cmd_delete}</div></th>
    </tr>
</thead>
<tbody>
    <!--@foreach($notify_list as $no => $val)-->
    {@ $parent = $val->parent; }
    <tr class="row2 <!--@if($parent->remoteid == -1)--> parentDocument<!--@else--> parent<!--@end-->" >
        <td><input type="checkbox" name="cart" value="{$parent->notified_srl}" /></td>
        <td class="nowrap date center">{zdate($parent->written, "Y/m/d")}</td>
        <td class="nowrap"><a href="{$parent->siteurl}" onclick="window.open(this.href);return false;">{$parent->title?$parent->title:"[No title]"}</a></td>
        <td class="nowrap">{$parent->name}</td>
        <td class="content"><a href="{$parent->entryurl}" onclick="window.open(this.href);return false;">{$parent->entrytitle}</a> <a href="{$parent->commenturl}" onclick="window.open(this.href);return false;">{$parent->comment}</a></td>
        <td><a href="#" onclick="deleteParent('{$parent->notified_srl}');" title="{$lang->cmd_delete}" class="buttonSet buttonDelete"><span>{$lang->cmd_delete}</span></a></td>
    </tr>
    <!--@foreach($val->children as $child)-->
    <tr>
        <td></td>
        <td class="center nowrap date">{zdate($child->written, "Y/m/d")}</td>
        <td class="nowrap"><a href="{$parent->siteurl}" onclick="window.open(this.href);return false;">{$parent->title?$parent->title:"[No title]"}</a></td>
        <td class="nowrap">{$child->name}</td>
        <td><img src="images/iconReplyArrow.gif" /> <a href="{$child->url}" onclick="window.open(this.href);return false;">{$child->comment}</a></td>
        <td><a href="#" onclick="deleteChild('{$child->notified_srl}');" class="buttonSet buttonDelete"><span>{$lang->cmd_delete}</span></a></td>
    </tr>
    <!--@end-->

    <!--@end-->
    <tr>
        <td colspan="6" class="right">
            <a href="javascript:XE.checkboxToggleAll({ checked:false })" class="button"><span>{$lang->cmd_unselect_all}</span></a>
            <a href="javascript:XE.checkboxToggleAll()" class="button"><span>{$lang->cmd_reverse_all}</span></a>
            <span class="button"><input type="submit" value="{$lang->cmd_delete_checked_comment}" /></span>
        </td>
    </tr>
</tbody>
</table>
</form>
<form id="deleteChildForm" action="./" method="POST">
<input type="hidden" id="notified" name="notified_srl" value="" />
</form>

<!-- 페이지 네비게이션 -->
<div class="pagination a1">
    <a href="{getUrl('page','','module_srl','')}" class="prevEnd">{$lang->first_page}</a> 
    <!--@while($page_no = $page_navigation->getNextPage())-->
        <!--@if($page == $page_no)-->
            <strong>{$page_no}</strong> 
        <!--@else-->
            <a href="{getUrl('page',$page_no,'module_srl','')}">{$page_no}</a> 
        <!--@end-->
    <!--@end-->
    <a href="{getUrl('page',$page_navigation->last_page,'module_srl','')}" class="nextEnd">{$lang->last_page}</a>
</div>

